<?php echo $this->Html->script('table_dynamic',FALSE);?>
<div class="row-fluid ">

    <div class="row-fluid">
        <div class="box paint_hover color_18">
            <div class="title">
                <h4> <span>Cập Nhật Danh Mục Môn Học<small></small></span> </h4>
            </div>
            <!-- End .title -->
            <div class="content top">
                <table id="datatable_example" class="responsive table table-striped table-bordered" style="width:100%;margin-bottom:0; ">
                    <thead>
                    <tr>
                        <th class="jv no_sort"><label class="checkbox ">
                            <input type="checkbox">
                        </label></th>
                        <th class="no_sort">Môn Học</th>
                        <th class="to_hide_phone  no_sort">Bộ Môn</th>
                        <th class="to_hide_phone ue no_sort">Ngày Tạo</th>
                        <th class="ms no_sort ">Hành Động</th>
                    </tr>
                    </thead>
                    <tbody>
                     <?php foreach($monhoc as $value) { ?>
                    <tr>
                        <td><label class="checkbox ">
                            <input type="checkbox">
                        </label></td>
                        <td class="to_hide_phone"><?php echo $value['Monhoc']['monhoc']; ?></td>
                        <td class="to_hide_phone"><?php
                          $bomon='';
                           foreach($value['Bomon'] as $value2) $bomon.=$value2['tenbomon'].'</br>';
                           echo $bomon;
                      ?></td>
                        <td><?php echo $value['Monhoc']['create_date'];?></td>
                        <td class="ms"><div class="btn-group"><div class="btn-group"> <a class="btn btn-small" rel="tooltip" data-placement="left" data-original-title=" edit "><i class="gicon-edit"></i></a> <a class="btn btn-small" rel="tooltip" data-placement="top" data-original-title="View"><i class="gicon-eye-open"></i></a> <a class="btn  btn-small" rel="tooltip" data-placement="bottom" data-original-title="Remove"><i class="gicon-remove "></i></a> </div></td>
                    </tr>
                    <?php } ?>
                    </tbody>
                </table>
                <div class="row-fluid  control-group mt15">

                    <div class="pull-left span6 visible-desktop" action="#">
                        <div class="row-fluid fluid offset9">

                                <button type="button" class="btn btn-inverse inline" onclick="return checkform()">Xóa Mục Đã Chọn</button>
                                <button type="button" class="btn btn-inverse inline">Thêm Mới</button>


                        </div>
                    </div>

                </div>
            </div>
            <!-- End row-fluid -->
        </div>
        <!-- End .content -->
    </div>
    <!-- End box -->

</div>
<!-- End .row-fluid -->
